package com.ruoyi.meeting.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.meeting.mapper.YxmeetingMapper;
import com.ruoyi.meeting.domain.Yxmeeting;
import com.ruoyi.meeting.service.IYxmeetingService;

/**
 * 营销日例会Service业务层处理
 * 
 * @author yellow
 * @date 2023-09-14
 */
@Service
public class YxmeetingServiceImpl implements IYxmeetingService 
{
    @Autowired
    private YxmeetingMapper yxmeetingMapper;

    /**
     * 查询营销日例会
     * 
     * @param hId 营销日例会主键
     * @return 营销日例会
     */
    @Override
    public Yxmeeting selectYxmeetingByHId(Long hId)
    {
        return yxmeetingMapper.selectYxmeetingByHId(hId);
    }

    /**
     * 查询营销日例会列表
     * 
     * @param yxmeeting 营销日例会
     * @return 营销日例会
     */
    @Override
    public List<Yxmeeting> selectYxmeetingList(Yxmeeting yxmeeting)
    {
        return yxmeetingMapper.selectYxmeetingList(yxmeeting);
    }

    /**
     * 新增营销日例会
     * 
     * @param yxmeeting 营销日例会
     * @return 结果
     */
    @Override
    public int insertYxmeeting(Yxmeeting yxmeeting)
    {
        return yxmeetingMapper.insertYxmeeting(yxmeeting);
    }

    /**
     * 修改营销日例会
     * 
     * @param yxmeeting 营销日例会
     * @return 结果
     */
    @Override
    public int updateYxmeeting(Yxmeeting yxmeeting)
    {
        return yxmeetingMapper.updateYxmeeting(yxmeeting);
    }

    /**
     * 批量删除营销日例会
     * 
     * @param hIds 需要删除的营销日例会主键
     * @return 结果
     */
    @Override
    public int deleteYxmeetingByHIds(Long[] hIds)
    {
        return yxmeetingMapper.deleteYxmeetingByHIds(hIds);
    }

    /**
     * 删除营销日例会信息
     * 
     * @param hId 营销日例会主键
     * @return 结果
     */
    @Override
    public int deleteYxmeetingByHId(Long hId)
    {
        return yxmeetingMapper.deleteYxmeetingByHId(hId);
    }
}
